package com.ice.framework.utils

import android.content.Context

object AppInfoUtils{

    fun packageCode(context: Context):Int{
        val manager=context.packageManager
        var code=0
        val info=manager.getPackageInfo(context.packageName,0)
        code=info.versionCode
        return code
    }

    fun packageName(context: Context):String{
        val manager=context.packageManager
        val info=manager.getPackageInfo(context.packageName,0)
        return info.versionName
    }
}